/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/********************************************************************************************************
 * \file     Adc_irq.c                                                                                  *
 * \brief    AUTOSAR 4.3.1 MCAL Adc interrupt Driver                                                    *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/29     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
 *                                      Include header files                                            *
 *******************************************************************************************************/
#include "Adc_Ip.h"
#include "Adc_irq.h"
#include "Mcal.h"

#define ADC_START_SEC_CODE_FAST
#include "Adc_MemMap.h"

#define ADC_ISR(id) \
ISR(Adc_EndGroupConvUnit##id)\
{\
    Adc_EndGroupConversion((Adc_HwUnitType)id##U - 1U);\
}

/********************************************************************************************************
 * \brief Adc1 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit1(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc1 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(1)

/********************************************************************************************************
 * \brief Adc2 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit2(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc1 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(2)

/********************************************************************************************************
 * \brief Adc3 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit3(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc1 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(3)

/********************************************************************************************************
 * \brief Adc4 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit4(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc1 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(4)

/********************************************************************************************************
 * \brief Adc5 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit5(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc5 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(5)

/********************************************************************************************************
 * \brief Adc6 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit6(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc6 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(6)

/********************************************************************************************************
 * \brief Adc7 interrupt handler

 * \verbatim
 * Syntax             : void Adc_EndGroupConvUnit7(void)

 * Service ID[hex]    : 0x00

 * Sync/Async         : Synchronous

 * Reentrancy         : Non reentrant

 * Parameters (in)    : None

 * Parameters (inout) : None

 * Parameters (out)   : None

 * Return value       : None

 * Description        : Adc7 interrupt handler
 * \endverbatim
 * Traceability       : 
 *******************************************************************************************************/
ADC_ISR(7)

#define ADC_STOP_SEC_CODE_FAST
#include "Adc_MemMap.h"

#ifdef __cplusplus
}
#endif
